474 research outputs found

    Fortran refactoring for legacy systems

    Get PDF
    The motivation of this work comes from a Global Climate Model (GCM) Software which was in great need of being updated. This software was implemented by scientists in the ’80s as a result of meteorological research. Written in Fortran 77, this program has been used as an input to make climate predictions for the Southern Hemisphere. The execution to get a complete numerical data set takes several days. This software has been programmed using a sequential processing paradigm. In these days, where multicore processors are so widespread, the time that an execution takes to get a complete useful data set can be drastically reduced using this technology. As a first objective to reach this goal of reengineering we must be able to understand the source code. An essential Fortran code characteristic is that old source code versions became unreadable, not comprehensive and sometimes “ejects” the reader from the source code. In that way, we can not modify, update or improve unreadable source code. Then, as a first step to parallelize this code we must update it, turn it readable and easy to understand. The GCM has a very complex internal structure. The program is divided into about 300 .f (Fortran 77) files. These files generally implement only one Fortran subroutine. Less than 10% of the files are used for common blocks and constants. Approximately 25% of the lines in the source code are comments. The total number of Fortran source code lines is 58000. A detailed work within the source code brings to light that [74]: 1 About 230 routines are called/used at run time. Most of the runtime is spent in routines located at deep levels 5 to 7 in the dynamic call graph from the main routine. 2 The routine with most of the runtime (the top routine from now on) requires more than 9% of the total program runtime and is called about 315000 times. 3 The top 10 routines (the 10 routines at the top of the flat profile) require about 50% of total runtime. Two of them are related to intrinsic Fortran functions. Our first approach was using a scripting language and Find & Replace tools trying to upgrade the source code, this kind of code manipulation do not guarantee preservation of software behavior. Then, our goal was to develop an automated tool to transform legacy software in more understandable, comprehensible and readable applying refactoring as main technique. At the same time a catalog of transformation to be applied in Fortran code is needed as a guide to programmers through this process.Es revisado por: http://sedici.unlp.edu.ar/handle/10915/9703Facultad de Informátic

    Headquarters location decisions under conflicts at home: Evidence from a configurational analysis

    Get PDF
    This study identifies the necessary and sufficient conditions to relocate firms’ headquarters (HQ) under circumstances of high political and economic risk (the illegal referendum of Catalonia in 2017). One of the most promising advances in the discussion of relocation decisions lies in combining non-economic conditions with traditional production factors. We use fsQCA methodology to test the model. QCA is a method based on set theory in which the outcome depends on combinations of elements, that have the nonlinear property and permits that certain conditions act in opposite ways under different circumstances. Using a database of 42 companies of different sectors, 28 of them that maintained HQ and 14 that relocated, the study provides evidence that family firms under similar circumstances may make decisions to stay or relocate as a function of the origin of the founders and the production factors of the relocation region. Second, we found that relocation decisions of subsidiaries under political and economic uncertainty are not affected by economic factors and there is inertia in their behavior

    Relation between the properties of the kilohertz quasi-periodic oscillations and spectral parameters in 4U 1636-53

    Get PDF
    We investigate the relation between the parameters of the energy spectrum and the frequency and amplitude of the kilohertz quasi-periodic oscillations (kHz QPOs) in the low-mass X-ray binary 4U 1636-53. We fit the 31803-180-keV spectrum of this source with a model that includes a thermal Comptonisation component. We show that the frequencies of both kHz QPOs follow the same relation as a function of the parameters of this spectral component, except for a systematic frequency shift, whereas the rms fractional amplitude of each QPO follows a different relation with respect to those same parameters. This implies that, while the dynamical mechanism that sets the frequencies of the QPO can be the same for both kHz QPOs, the radiative mechanisms that set the amplitudes of the lower and the upper kHz QPO are likely different. We discuss the implications of these results to the modelling of the kHz QPOs and the possibility that the lower kHz QPO reflects a resonance between the Comptonising medium and the photons from the accretion disc and/or the neutron star surface.Comment: 7 pages, 4 figures, 2 tables. Accepted for publication in MNRA

    Proposal and Comparative Study of Evolutionary Algorithms for Optimum Design of a Gear System

    Get PDF
    This paper proposes a novel metaheuristic framework using a Differential Evolution (DE) algorithm with the Non-dominated Sorting Genetic Algorithm-II (NSGA-II). Both algorithms are combined employing a collaborative strategy with sequential execution, which is called DE-NSGA-II. The DE-NSGA-II takes advantage of the exploration abilities of the multi-objective evolutionary algorithms strengthened with the ability to search global mono-objective optimum of DE, that enhances the capability of finding those extreme solutions of Pareto Optimal Front (POF) difficult to achieve. Numerous experiments and performance comparisons between different evolutionary algorithms were performed on a referent problem for the mono-objective and multi-objective literature, which consists of the design of a double reduction gear train. A preliminary study of the problem, solved in an exhaustive way, discovers the low density of solutions in the vicinity of the optimal solution (mono-objective case) as well as in some areas of the POF of potential interest to a decision maker (multi-objective case). This characteristic of the problem would explain the considerable difficulties for its resolution when exact methods and/or metaheuristics are used, especially in the multi-objective case. However, the DE-NSGA-II framework exceeds these difficulties and obtains the whole POF which significantly improves the few previous multi-objective studies.Fil: Méndez Babey, Máximo. Universidad de Las Palmas de Gran Canaria; EspañaFil: Rossit, Daniel Alejandro. Universidad Nacional del Sur. Departamento de Ingeniería; Argentina. Consejo Nacional de Investigaciones Científicas y Técnicas. Centro Científico Tecnológico Conicet - Bahía Blanca. Instituto de Matemática Bahía Blanca. Universidad Nacional del Sur. Departamento de Matemática. Instituto de Matemática Bahía Blanca; ArgentinaFil: González, Begoña. Universidad de Las Palmas de Gran Canaria; EspañaFil: Frutos, Mariano. Universidad Nacional del Sur. Departamento de Ingeniería; Argentina. Consejo Nacional de Investigaciones Científicas y Técnicas. Centro Científico Tecnológico Conicet - Bahía Blanca. Instituto de Investigaciones Económicas y Sociales del Sur. Universidad Nacional del Sur. Departamento de Economía. Instituto de Investigaciones Económicas y Sociales del Sur; Argentin

    Lags of the KiloHertz Quasi-Periodic Oscillations in the transient source XTE J1701-462

    Get PDF
    We analysed 14 observations with kilohertz quasi-periodic oscillations (kHz QPOs) of the neutron star X-ray binary XTE J1701-462, the first source to show a clear transition between atoll and Z-like behaviour during a single outburst. We calculated the average cross-spectrum of both atoll and Z-phase observations of XTE J1701-462 between a reference/hard band (6.1 - 25.7 keV) and a subject/soft band (2.1 - 5.7 keV) to obtain, using a novel technique, the average time lags of the lower and upper kHz QPOs. During the atoll phase, we found that at the frequency of the lower kHz QPO the soft photons lag behind the hard ones by 18±818 \pm 8 μ\mus, whereas during the Z phase the lags are 33±3533\pm35 μ\mus, consistent with zero. This difference in the lags of both phases suggests that in XTE J1701-462, as observed in other sources, the lags decrease with increasing luminosity. We found that for both the atoll and Z phase observations the fractional rms amplitude increases with energy up to \sim10 keV and remains more or less constant at higher energies. Since these changes in the variability of XTE J1701-462 occur within the same outburst, properties like the mass of the neutron star or the inclination of the system cannot be responsible for the differences in the timing properties of the kHz QPOs in the atoll and Z phase. Here we suggest that these differences are driven by a Comptonizing component or corona, possibly oscillating in a coupled mode with the innermost regions of the accretion disc.Comment: 11 pages, 5 figures, accepted for publication in MNRA

    Is there a link between the neutron-star spin and the frequency of the kilohertz quasi-periodic oscillations?

    Get PDF
    There is a general consensus that the frequencies of the kilohertz quasi-periodic oscillations (kHz QPOs) in neutron-star low-mass X-ray binaries are directly linked to the spin of the neutron star. The root of this idea is the apparent clustering of the ratio of the frequency difference of the kHz QPOs, and the neutron-star spin frequency, Δν/νs, at around 0.5 and 1 in 10 systems for which these two quantities have been measured. Here, we re-examine all available data of sources for which there exist measurements of two simultaneous kHz QPOs and spin frequencies, and we advance the possibility that Δν and νs are not related to each other. We discuss ways in which this possibility could be tested with current and future observations.</p

    Is there a link between the neutron-star spin and the frequency of the kilohertz quasi-periodic oscillations?

    Get PDF
    There is a general consensus that the frequencies of the kilohertz quasi-periodic oscillations (kHz QPOs) in neutron-star low-mass X-ray binaries are directly linked to the spin of the neutron star. The root of this idea is the apparent clustering of the ratio of the frequency difference of the kHz QPOs, and the neutron-star spin frequency, Δν/νs, at around 0.5 and 1 in 10 systems for which these two quantities have been measured. Here, we re-examine all available data of sources for which there exist measurements of two simultaneous kHz QPOs and spin frequencies, and we advance the possibility that Δν and νs are not related to each other. We discuss ways in which this possibility could be tested with current and future observations.</p

    Kilohertz quasi-periodic oscillations in neutron-star X-ray binaries:Flattening of the lag spectrum with increasing luminosity

    Get PDF
    We study the energy-dependent time lags and rms fractional amplitude of the kilohertz quasi-periodic oscillations (kHz QPOs) of a group of neutron-star low mass X-ray binaries (LMXBs). We find that for the lower kHz QPO the slope of the best-fitting linear model to the time-lag spectrum and the total rms amplitude integrated over the 2 to 25 keV energy band both decrease exponentially with the luminosity of the source. For the upper kHz QPO the slope of the time-lag spectrum is consistent with zero, while the total rms amplitude decreases exponentially with the luminosity of the source. We show that both the slope of the time-lag spectrum and the total rms amplitude of the lower kHz QPO are linearly correlated with a slope of ~1. Finally, we discuss the mechanism that could be responsible for the radiative properties of the kHz QPOs, with the variability originating in a Comptonising cloud or corona that is coupled to the innermost regions of the accretion disc, close to the neutron star.Comment: 7 pages, 5 figures, accepted for publication in MNRA

    Integrating Software Metrics for Fortran Legacy into an IDE

    Get PDF
    Software Metrics have being used since the 70s, their purpose is to measure different software attributes, such as complexity and maintainability, to name a few. Software Metrics help programmers obtain valuable information about programs. That information is essential when working with legacy systems. Scientists have been producing Fortran programs for the last six decades, and some of those programs became legacy years ago.We have implemented a set of well known software metrics for Fortran into a widely used IDE (Integrated Development Environment) by means of AST (Abstract Syntax Tree). This integration allows developers to obtain software metrics from their source code while they are programming.XI Workshop de Ingeniería de Softwar

    Integrating Software Metrics for Fortran Legacy into an IDE

    Get PDF
    Software Metrics have being used since the 70s, their purpose is to measure different software attributes, such as complexity and maintainability, to name a few. Software Metrics help programmers obtain valuable information about programs. That information is essential when working with legacy systems. Scientists have been producing Fortran programs for the last six decades, and some of those programs became legacy years ago.We have implemented a set of well known software metrics for Fortran into a widely used IDE (Integrated Development Environment) by means of AST (Abstract Syntax Tree). This integration allows developers to obtain software metrics from their source code while they are programming.XI Workshop de Ingeniería de Softwar
    corecore